package com.zhouliang.error;

public enum StatusCode {
    SUCCESS(0, "操作成功"),
    REGISTERERROR(1000001,"账户已存在"),
    LOGINERROR(1000002,"用户密码不对"),
    TOKENEXPIRED(1000003,"token过期")
    ;

    private final Integer code;
    private final String msg;


    StatusCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
